const path = require('path')

const pathStr = '/a/b/c/index.html'

console.log(path.extname(pathStr))